import MySQLdb 
         
connection = MySQLdb.connect(host="10.0.0.254" , user="root" , passwd="" , db="konfeksiyon" , port=3306)
cursor = connection.cursor()

 
